package com.study.talk.data.remote

import com.study.common.annotation.Desc
import com.study.talk.data.model.Message
import com.study.talk.data.model.resp.ResultResponse
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.Path

interface MsgApi {

    @Desc("获取缓存消息")
    @GET("/message/list/{userId}")
    suspend fun getCacheMsg(@Path("userId") userId: Int): Response<ResultResponse<List<Message>>>

    @Desc("获取所有消息")
    @GET("message/list/all")
    suspend fun getAllMsg():Response<ResultResponse<List<Message>>>
}